The Dump SQL File, Execute SQL File, Dump Script File and Execute Script File features allow you to dump your database, schema, tables or collections to a SQL or .js file or execute SQL or .js files in your connection, database or schema.
To dump a file
In the main window, control-click an opened database/schema or control-click the selected tables/collections, and select Dump SQL File or Dump Script File -> Structure Only or Structure + Data.
Browse the save location and enter a file name.
Click Save.
To execute a file
In the main window, control-click an opened connection, database or schema and select Execute SQL File or Execute Script File.
Browse your SQL or .js file, choose the encoding of the file and enable appropriate options.
Option |
Description |
Continue on error |
Ignore errors that are encountered during the execution process. |
Run multiple queries in each execution |
Execute multiple SQL statements at once. |
SET AUTOCOMMIT=0 / No Auto Commit |
Disable auto commit mode. |
Click Start.
Hint: You can drag and drop a .sql or .js file to an opened connection, database or schema in the Navigation pane. Navicat will pop up the Execute SQL File or Execute Script File window automatically.